package com.lemo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@SpringBootApplication
@Controller
public class LemoSpringbootJspApplication{


    public static void main(String[] args) {
        SpringApplication.run(LemoSpringbootJspApplication.class, args);
    }

    @RequestMapping("/index")
    public String index(Model model) {
        model.addAttribute("strType", "中国");
        return "index";
    }

}
